import {ADDITEM} from '../const.js'

const initState=[
			{
				id:"001",
				title:'中国台湾艺人徐熙娣（小S）再度发声：感谢国台办再次帮忙澄清！'
			}
		]

function todoReducer(state=initState,action){
	const {type,payload}=action;
	const newState=Object.assign([],state)
	switch (type) {
		case ADDITEM:
			newState.unshift(payload);
			break;
		default:
			// statements_def
			break;
	}
	return newState;
}

export default todoReducer